﻿using System;
using System.Globalization;
using System.Threading;

class MathExpression
{
    static void Main()
    {
        Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
        decimal n = decimal.Parse(Console.ReadLine().Replace(",", "."));
        decimal m = decimal.Parse(Console.ReadLine().Replace(",", "."));
        decimal p = decimal.Parse(Console.ReadLine().Replace(",", "."));

        decimal nominator = (n * n) + (1 / (m * p)) + 1337;
        decimal denominator = n - (128.523123123m * p);
        double mod = (int)m % 180;
        decimal result = nominator / denominator + (decimal)Math.Sin(mod);
        Console.WriteLine(Math.Round(result, 6));
    }
}